<?php

use yii\db\Migration;

class m171205_071010_alter_package extends Migration
{
    public $tableName = '{{%package}}';
    public function safeUp()
    {
        $this->addColumn($this->tableName, 'wait_time', $this->smallInteger(5)->after('group_id')->defaultValue(0));
    }

    public function safeDown()
    {
        $this->dropColumn($this->tableName, 'wait_time');
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m171205_071010_alter_package cannot be reverted.\n";

        return false;
    }
    */
}
